home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / AZTECW.DIR / 01711_Script_EOT < prev    next >
Text File  |  1995-09-12  |  6KB  |  239 lines

  1. global gQuest, gBeenClicked
  2.  
  3. on AEOTRollovers
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if the mousecast = the castnum of sprite 9 or rollover(8) or rollover(11) then
  7.       repeat while the mousecast = the castnum of sprite 9 or rollover(8) or rollover(11)
  8.         AztecCursor
  9.         puppetsprite 12, true
  10.         set the locH of sprite 12 to 435
  11.         set the locV of sprite 12 to 251
  12.         updatestage
  13.         if the mousedown then
  14.           set GBeenClicked = 1
  15.         else
  16.           if gBeenClicked = 1 then
  17.             repeat while gBeenClicked = 1
  18.               EOTAnimate1
  19.             end repeat
  20.           end if
  21.         end if
  22.       end repeat
  23.       set the locH of sprite 12 to 935
  24.       updatestage
  25.       puppetsprite 12, false
  26.     else
  27.       if rollover(6) or rollover(7) then
  28.         repeat while rollover(6) or rollover(7)
  29.           AztecCursor
  30.           puppetsprite 14, true
  31.           set the locH of sprite 14 to 333
  32.           set the locV of sprite 14 to 239 
  33.           updatestage
  34.           if the mousedown then
  35.             set GBeenClicked = 1
  36.           else
  37.             if gBeenClicked = 1 then
  38.               repeat while gBeenClicked = 1
  39.                 EOTAnimate2
  40.               end repeat
  41.             end if
  42.           end if
  43.         end repeat
  44.         set the locH of sprite 14 to 933
  45.         updatestage
  46.         puppetsprite 14, false
  47.       else
  48.         if rollover(10) then
  49.           repeat while rollover(10)
  50.             AztecCursor
  51.             puppetsprite 13, true
  52.             set the locH of sprite 13 to 365
  53.             set the locV of sprite 13 to 266
  54.             updatestage
  55.             if the mousedown then
  56.               set GBeenClicked = 1
  57.             else
  58.               if gBeenClicked = 1 then
  59.                 repeat while gBeenClicked = 1
  60.                   AnimateLoop 10, 1007, 5, 0, 1
  61.                 end repeat
  62.               end if
  63.             end if
  64.           end repeat
  65.           set the locH of sprite 13 to 965
  66.           puppetsprite 13, false
  67.           updatestage
  68.         else
  69.           if rollover(41) then
  70.             HandCursor
  71.           else
  72.             if rollover(42) then
  73.               HandCursor
  74.             else
  75.               ArrowCursor
  76.             end if
  77.           end if
  78.         end if
  79.       end if
  80.     end if
  81.   end if
  82.   RandomQuestion(gQuest)
  83. end
  84.  
  85. on EOTAnimate1
  86.   ArrowCursor
  87.   set gAnimationcast1 = 1027
  88.   set gAnimationcast2 = 1013
  89.   set gAnimationcast3 = 1033
  90.   set count = 0
  91.   updatestage
  92.   puppetsound "SA402002.AIF (HORSE WHIN)"
  93.   repeat while count < 2 and (the mouseUp)
  94.     
  95.     set the castnum of sprite 9 = gAnimationcast2 + 1
  96.     updatestage
  97.     wait .1
  98.     if (the mousedown) then 
  99.       exit repeat
  100.     end if
  101.     
  102.     set the castnum of sprite 8 = gAnimationcast1 + 1
  103.     set the castnum of sprite 9 = gAnimationcast2 + 2
  104.     updatestage
  105.     wait .1
  106.     if (the mousedown) then 
  107.       exit repeat
  108.     end if
  109.     
  110.     set the castnum of sprite 8 = gAnimationcast1 + 2
  111.     set the castnum of sprite 9 = gAnimationcast2 + 3
  112.     set the castnum of sprite 11 = gAnimationcast3 + 1
  113.     updatestage
  114.     wait .1
  115.     if (the mousedown) then 
  116.       exit repeat
  117.     end if
  118.     
  119.     set the castnum of sprite 8 = gAnimationcast1 + 3
  120.     set the castnum of sprite 9 = gAnimationcast2 + 4
  121.     set the castnum of sprite 11 = gAnimationcast3 + 2
  122.     updatestage
  123.     wait .1
  124.     if (the mousedown) then 
  125.       exit repeat
  126.     end if
  127.     
  128.     set the castnum of sprite 8 = gAnimationcast1 + 4
  129.     set the castnum of sprite 9 = gAnimationcast2 + 3
  130.     set the castnum of sprite 11 = gAnimationcast3 + 3
  131.     updatestage
  132.     wait .1
  133.     if (the mousedown) then 
  134.       exit repeat
  135.     end if
  136.     
  137.     set the castnum of sprite 9 = gAnimationcast2 + 2
  138.     set the castnum of sprite 11 = gAnimationcast3 + 2
  139.     updatestage
  140.     wait .1
  141.     if (the mousedown) then 
  142.       exit repeat
  143.     end if
  144.     
  145.     set the castnum of sprite 9 = gAnimationcast2 + 1
  146.     set the castnum of sprite 11 = gAnimationcast3 + 1
  147.     updatestage
  148.     wait .1
  149.     if (the mousedown) then 
  150.       exit repeat
  151.     end if
  152.     
  153.     set the castnum of sprite 9 = gAnimationcast2
  154.     set the castnum of sprite 11 = gAnimationcast3
  155.     updatestage
  156.     wait .1
  157.     if (the mousedown) then 
  158.       exit repeat
  159.     end if
  160.     
  161.     set count = count + 1
  162.   end repeat
  163.   set the castnum of sprite 8 = gAnimationcast1
  164.   set the castnum of sprite 9 = gAnimationcast2
  165.   set the castnum of sprite 11 = gAnimationcast3
  166.   updatestage
  167.   set gBeenClicked = 0
  168. end
  169.  
  170. on EOTAnimate2
  171.   ArrowCursor
  172.   set gAnimationcast1 = 1019
  173.   set gAnimationcast2 = 1022
  174.   set count = 0
  175.   updatestage
  176.   repeat while count < 2 and (the mouseUp)
  177.     
  178.     set the castnum of sprite 6 = gAnimationcast1 + 1
  179.     updatestage
  180.     wait .4
  181.     if (the mousedown) then 
  182.       exit repeat
  183.     end if
  184.     
  185.     set the castnum of sprite 6 = gAnimationcast1 + 2
  186.     set the castnum of sprite 7 = gAnimationcast2 + 1
  187.     updatestage
  188.     wait .4
  189.     if (the mousedown) then 
  190.       exit repeat
  191.     end if
  192.     
  193.     set the castnum of sprite 6 = gAnimationcast1 + 1
  194.     set the castnum of sprite 7 = gAnimationcast2 + 2
  195.     updatestage
  196.     wait .4
  197.     if (the mousedown) then 
  198.       exit repeat
  199.     end if
  200.     
  201.     set the castnum of sprite 6 = gAnimationcast1
  202.     set the castnum of sprite 7 = gAnimationcast2 + 3
  203.     updatestage
  204.     wait .4
  205.     if (the mousedown) then 
  206.       exit repeat
  207.     end if
  208.     
  209.     set the castnum of sprite 7 = gAnimationcast2 + 2
  210.     updatestage
  211.     wait .4
  212.     if (the mousedown) then 
  213.       exit repeat
  214.     end if
  215.     
  216.     set the castnum of sprite 7 = gAnimationcast2 + 1
  217.     updatestage
  218.     wait .4
  219.     if (the mousedown) then 
  220.       exit repeat
  221.     end if
  222.     
  223.     set the castnum of sprite 7 = gAnimationcast2
  224.     updatestage
  225.     wait .4
  226.     if (the mousedown) then 
  227.       exit repeat
  228.     end if
  229.     
  230.     set count = count + 1
  231.   end repeat
  232.   set the castnum of sprite 6 = gAnimationcast1
  233.   set the castnum of sprite 7 = gAnimationcast2
  234.   updatestage
  235.   set gBeenClicked = 0
  236. end
  237.  
  238.  
  239.